
import { router } from '.';
export function redirectRoute(redirect: string) {
  router.addRoute({
    path: '/',
    redirect
  })
  setTimeout(() => {
    router.replace(redirect)
  }, 0);
}